/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wikitrafic.iovanalex.ro;

/**
 *
 * @author Administrator
 */
public class TraceItem {

    private String timeStamp;
    private GPSPoint point;
    private byte satCount;
    private byte satMax;

    public TraceItem(String timeStamp, String lat, String lon, String satCount, String satMax){
        this.timeStamp=timeStamp;
        this.point=new GPSPoint(Double.parseDouble(lat), Double.parseDouble(lon));
        this.satCount=(byte) Integer.parseInt(satCount);
        this.satMax=(byte) Integer.parseInt(satMax);
    }

    public GPSPoint getPoint(){
        return point;
    }

    public byte getConfidanceRadius(){
        return (byte) (10 + (satMax - satCount));
    }
    public int getTimestamp(){
        return Integer.parseInt(timeStamp);
    }


}
